/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package command;

import static java.lang.Math.log;
import javax.swing.JOptionPane;
import presenter.CadPacientePresenter;
import state.EstadoVisualizar;

/**
 *
 * @author KDC
 */
public class SalvarNovoCommand extends AbstractCommandCad {

    public SalvarNovoCommand(CadPacientePresenter cadPac) {
        super(cadPac);
    }

    @Override
    public void executar() {
        if (verificar()) {
            cadastrar();
        }
    }

}
